using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WebControls;
using BusinessLayer;

public partial class contact : SFPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSend_Click(object sender, EventArgs e)
    {
        this.Validate();
        if (this.HasErrors)
        {
            MessageBoxShow(this);
            return;
        }
        object[] mailParams = new object[] { txtNameSurname.Text, txtEmailAddress.Text, txtMessage.Text };
        busMails insBusMails = new busMails();
        insBusMails.SendMail(1, mailParams);
        pnlInput.Visible = false;
        pnlSave.Visible = true;
    }
}
